package com.fr.base.core.image4j.util;

import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;

public class ImageUtil
{
  public static BufferedImage scaleImage(BufferedImage paramBufferedImage, int paramInt1, int paramInt2)
  {
    Image localImage = paramBufferedImage.getScaledInstance(paramInt1, paramInt2, 0);
    BufferedImage localBufferedImage = null;
    localBufferedImage = new BufferedImage(paramInt1, paramInt2, 2);
    Graphics2D localGraphics2D = localBufferedImage.createGraphics();
    localGraphics2D.drawImage(localImage, 0, 0, null);
    return localBufferedImage;
  }
}